<?
	include('chksession.php');
		include('conn.php');
	session_start();
   
       $tranid =$_REQUEST['tranid'];
	   $trandate= $_REQUEST['trandate'];
       $customername= $_REQUEST['customername'];
	   $amtreceived= $_REQUEST['amtreceived'];
	   $paymode= $_REQUEST['paymode'];
	   $drawnon= $_REQUEST['drawnon'];
	   $paydate= $_REQUEST['paydate'];
	   $onactoff= $_REQUEST['onactoff'];
	   $contactnumber= $_REQUEST['contactnumber'];
	   $fromdate= $_REQUEST['fromdate'];
	   $todate= $_REQUEST['todate'];
	   $remarks = $_REQUEST['remarks'];
	   $enteredby=$_SESSION['username'];
	   $entrydt = $_REQUEST['entrydt'];
	   $status = $_REQUEST['status'];
	   
	
		$sql="update tranentrymast set 
				trandate='".$trandate."',customername='".strtoupper($customername)."',amtreceived='".$amtreceived."',
				paymode='".$paymode."',drawnon='".$drawnon."',
				paydate='".$paydate."',onactoff='".$onactoff."',contactnumber='".$contactnumber."',
				remarks='".$remarks."',fromdate=".$fromdate.",todate=".$todate.", enteredby='".strtoupper($enteredby)."',entrydt=sysdate()	where status=0 and tranid=".$tranid;
		
		 echo $sql;
		 //return;
		$res=mysql_query($sql);
		if($res)
		$msg='Record updated successfully...';					

?>